package com.sz.designpattern.behavior11.interpreter;

import java.util.HashMap;
import java.util.Map;

public class Context {
    private Map<String,Object> map = new HashMap<>();

    /**
     * 赋值
     * @param key
     * @param value
     */
    public void put(String key,int value){
        map.put(key,value);
    }

    /**
     * 取值
     * @param key
     * @return
     */
    public int get(String key){
        return (int) map.get(key);
    }
}
